home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / sask135.zip / DEMO.BAT next >
DOS Batch File  |  1992-04-26  |  1KB  |  42 lines

  1. echo off
  2. :TOP
  3. cls
  4. sask menu.dat 1234p
  5. If ERRORLEVEL = 99 goto ERROR
  6. if ERRORLEVEL = 5 goto PARK
  7. If ERRORLEVEL = 4 goto EXIT
  8. if ERRORLEVEL = 3 goto SHELL
  9. if ERRORLEVEL = 2 goto LOTUS
  10. echo You pressed the number 1 and Smartcomm would now be loaded
  11. echo however this is only a demo!
  12. pause
  13. goto TOP
  14. :LOTUS
  15. echo You pressed the number 2 and Lotus 1-2-3 would now be loaded, but
  16. echo maybe you don't have it, so I won't run it.
  17. pause
  18. goto TOP
  19. :SHELL
  20. echo You pressed the number 3 and I'll now run a second DOS shell. If
  21. echo COMMAND.COM does not exist on your path, you will receive an error
  22. echo and be returned. Otherwise, just type EXIT to get back to here.
  23. command
  24. echo You have returned!
  25. pause
  26. goto TOP
  27. :EXIT
  28. echo You pressed the number 4 and I will now stop this Demonstration.
  29. echo Please be sure to review the DEMO.BAT file to see how this
  30. echo mini-menu was created. Goodbye!
  31. goto DONE
  32. :PARK
  33. echo You pressed the letter P and I would now normally run a disk head
  34. echo parking program. But, I won't in this demo.
  35. pause
  36. goto TOP
  37. :ERROR
  38. echo You either pressed Ctrl-C/Ctrl-Break or some other error occurred
  39. echo aborting
  40. :DONE
  41. echo on
  42.